<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>员工管理</title>

    <jsp:include page="/static/common/easyui_header.jsp"></jsp:include>

    <script type="text/javascript" src="/static/js/views/employee.js"></script>

</head>
<body>

<body>
<%--工具条--%>
<div id="employee_datagrid_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-add" plain="true" data-cmd="add">添加</a>

    <a class="easyui-linkbutton" iconCls="icon-edit" plain="true" data-cmd="edit">编辑</a>

    <a class="easyui-linkbutton" iconCls="icon-remove" plain="true" data-cmd="remove">删除</a>

    <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" data-cmd="reload">刷新</a>
</div>
<!--表单-->
<table id="employee_datagrid"></table>
<div id="employee_dialog" style="padding: 10px">
    <form id="employee_add_form" method="post">
        <input type="hidden" name="id" id="employee_id">
        <table>
            <tr>
                <td>姓名</td>
                <td><input name="name" class="easyui-textbox"></td>
            </tr>

            <tr>
                <td>年龄</td>
                <td><input name="age" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>岗位</td>
                <td><input id="ccc" class="easyui-combobox" name="role.id"
                           data-options="valueField:'id',textField:'name',url:'/role/listAll'"/></td>
            </tr>
            <tr>
                <td>电话</td>
                <td><input name="tel" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>薪酬</td>
                <td><input name="salary" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>店铺</td>
                <td>
                    <input id="cc" class="easyui-combobox" name="shop.id"
                           data-options="valueField:'id',textField:'name',url:'/shop/listAllShop'"/>
                </td>
            </tr>
            <tr>
                <td>入职时间</td>
                <td><input name="vdate" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>添加时间</td>
                <td><input name="inputTime" class="easyui-textbox"></td>
            </tr>
        </table>
    </form>
    <div id="employee_dialog_buttons">
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="save">确定</a>
        <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
    </div>
</div>
</body>
</body>
</html>